package com.husd.framework.autocode.dto;

import lombok.Data;

/**
 * @author shengdonghu@126.com
 * @date 2023/4/21 16:19
 */
@Data
public class EbayWord {

    private String name;

    // type有以下几种
    // <
    // >
    // <!--
    // -->
    // 单词
    // =
    // "
    //
    private EbayWorkType type;

    private long id;

    private boolean repeat;

    public EbayWord(String name, EbayWorkType type) {
        this.name = name;
        this.type = type;
    }

    public final static EbayWord L1 = new EbayWord("<", EbayWorkType.L1);
    public final static EbayWord R1 = new EbayWord(">", EbayWorkType.R1);
    public final static EbayWord C1 = new EbayWord("<!--", EbayWorkType.C1);
    public final static EbayWord C2 = new EbayWord("-->", EbayWorkType.C2);
    public final static EbayWord EQ = new EbayWord("=", EbayWorkType.EQ);
    public final static EbayWord QUO = new EbayWord("\"", EbayWorkType.QUO);
    public final static EbayWord XIE= new EbayWord("/", EbayWorkType.XIE);

    public enum EbayWorkType {

        L1, // <
        R1, // >
        C1, // <!--
        C2, // -->
        WORD,// 单词
        EQ, // =
        QUO, // "
        XIE, // /

    }
}


